const { Sequelize, sequelize } = require('../dao/db');

const Page = sequelize.define('Page', {
    id: {
        type: Sequelize.BIGINT(11),
        autoIncrement: true,
        primaryKey: true,
        unique: true,
        comment: '主键'
    },
    screenId: {
        type: Sequelize.STRING,
    },
    pageName: {
        type: Sequelize.STRING,
    },
    pageDesc: {
        type: Sequelize.STRING,
    }
}, {
    tableName: 'pages',
})
// User.sync({ force: true })
Page.sync().then(() => {
    console.log('Page表模型已经同步 ');
});
module.exports = Page